<?php
require_once("PageComponent.php");

abstract class SpacePageComponent extends PageComponent {
    public $id;
    public $name;
    public $minimized = 0;
    public $width = 0;
    
    public function __construct($id,$name) {
        $this->id = $id;
        $this->name = $name;
    }
  
    abstract public function closeable();
    abstract public function minimizable();
    public function setColumn($column) {
        if ($column == 'left' || $column == 'right') {
            $this->setNarrow();
        } else {
            $this->setWide();
        }
    }
    public function setWide() {
        $this->width = 1;
    }
    public function setNarrow() {
        $this->width = 0;
    }
}
?>